/**
 * 求X的所有质因子的数量
 */
#include <bits/stdc++.h>
using namespace std;

#include <bits/extc++.h>
using namespace __gnu_pbds;

using llt = long long;
using Real = double;
using vi = vector<int>;
using pii = pair<int, int>;

llt X;

int proc(){
    if(1 == X) return 0;
    int ans = 0;
    for(llt i=2;i*i<=X;++i){
        if(0 == X % i){
            ++ans;
            while(0 == X % i) X /= i;
        }
        if(1 == X) break;
    }
    if(X != 1) ans += 1;
    return ans;
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(0);
    int nofkase = 1;
    // cin >> nofkase;
    while(nofkase--){
        cin >> X;
        cout << proc() << endl;
    }
    return 0;
}